<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php if (isset($data) && count($data)) { ?>
            <table>
                <thead>
                <th>Date</th>
                <th>Company</th>
                <th>Name</th>
                <th>Amount</th>
                <th>Checked</th>
            </thead>
            <tbody>
                <?php
                foreach ($data as $row) {
                    echo "<tr>";
                    echo "<td>";
                    echo $row['date'];
                    echo "</td>";
                    echo "<td>";
                    echo $row['company'];
                    echo "</td>";
                    echo "<td>";
                    echo $row['name'];
                    echo "</td>";
                    echo "<td>";
                    echo $row['amount'];
                    echo "</td>";
                    echo "<td>";
                    echo $row['checked'];
                    echo "</td>";
                    echo "</tr>";
                }
                ?>                            
            </tbody>
        </table>

<?php
} else {
    echo "www";
}
?>
</body>
</html>
